package com.ruoyi.framework.task;


import com.ruoyi.project.warehouse.service.ILockRyDepotItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/*
 * @Description:定时刷新
 * @ClassName：ShuHeTask
 * @Author: 明月 萧雪
 * @Date: 2022/11/28 10:01:43
 */

@Component("shuHeTask")
public class ShuHeTask {

    @Autowired
    private ILockRyDepotItemService iLockRyDepotItemService;

    public void shuTiming(){

        System.out.println("================");
        System.out.println("|              |");
        System.out.println("|   B   U   G  |");
        System.out.println("|              |");
        System.out.println("================");

        int i = iLockRyDepotItemService.updateUserSysUserStatus();
        if (i>0) {
            System.out.println("用户已锁定");
        }else{
            System.out.println("用户未锁定");
        }
    }
}
